package com.chenfan.mcn.model.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author liuyang
 * @Date 2021/6/11
 * @Time 10:49
 * @Version V1.0
 **/
@Data
public class BusinessInfoExport {

    /**
     * 商务提成明细id
     */
    private Long id;

    /**
     * 商务提成id
     */
    private Long businessId;

    /**
     * 提成人名称
     */
    @Excel(name = "姓名")
    private String commissionName;

    /**
     * 部门
     */
    @Excel(name = "部门")
    private String departmentName;

    /**
     * 合同编号
     */
    @Excel(name = "合同编号")
    private String incomeCode;

    /**
     * 客户id
     */
    private Long customerId;

    /**
     * 客户名称
     */
    @Excel(name = "客户名称")
    private String customerName;

    /**
     * 客户评分
     */
    private String customerScore;

    /**
     * 是否为新客户首单（0非客户首单；1是客户首单）
     */
    @Excel(name = "是否为新客户首单", replace = {"非客户首单_0", "客户首单_1"})
    private Integer customerFirstOrder;

    /**
     * 合同金额
     */
    @Excel(name = "合同总金额", type = 10)
    private BigDecimal businessAmount;

    /**
     * 是否含直播全案
     */
    @Excel(name = "是否含直播全案", replace = {"是_1", "否_0"})
    private Integer broadcastContract;

    /**
     * 总提点
     */
    @Excel(name = "个人总提点")
    private BigDecimal generalPoints;

    /**
     * 是否为重点客户（0-是，1-否）
     */
    @Excel(name = "是否为重点客户", replace = {"是_0", "否_1"})
    private Integer keyCustomers;

    /**
     * 目标达成率
     */
    @Excel(name = "客户目标达成率")
    private BigDecimal targetAchievementRate;

    /**
     * 个人提成
     */
    @Excel(name = "个人提成", type = 10)
    private BigDecimal personalCommission;

    /**
     * 单据状态
     */
    @Excel(name = "单据状态", replace = {"待提交_0", "审批中_1", "审批通过_2", "审批拒绝_3", "已撤回_4", "已作废_9"})
    private Integer approvalStatus;

    /**
     * 结算状态
     */
    @Excel(name = "结算状态", replace = {"未结算_0", "结算中_1", "已结算_2"})
    private Integer commissionSettleStatus;

    /**
     * 回款状态（0未回款；1部分回款；2已回款）
     */
    @Excel(name = "回款状态", replace = {"未回款_0", "部分回款_1", "已回款_2"})
    private Integer payBackStatus;

    /**
     * 提成人id
     */
    private Long commissionId;


    /**
     * 创建时间
     */
    @Excel(name = "创建时间", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 是否删除（0-正常，1-删除）
     */
    private Integer isDelete;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

}
